﻿ 
using System.Threading;
using System.Resources;
using System.Globalization;

namespace MyUtils.Properties
{
	public static partial class Resources
	{
        static ResourceManager resourceManager = new ResourceManager("MyUtils.Properties.Resources", typeof(Resources).Assembly);
        
		static string GetResourceString(string key, params string[] tokens)
		{
			return GetResourceString(key, null, tokens);
		}

		static string GetResourceString(string key, CultureInfo culture, params string[] tokens)
		{
            var str = resourceManager.GetString(key, culture ?? CultureInfo.CurrentUICulture);

			for(int i = 0; i < tokens.Length; i += 2)
				str = str.Replace(tokens[i], tokens[i+1]);
										
            return str;
        }
        
		
		public static string InfoSize_B { get { return GetResourceString("InfoSize_B"); } }
		public static string GetInfoSize_B (CultureInfo culture) { return GetResourceString("InfoSize_B", culture); }

		public static string InfoSize_E { get { return GetResourceString("InfoSize_E"); } }
		public static string GetInfoSize_E (CultureInfo culture) { return GetResourceString("InfoSize_E", culture); }

		public static string InfoSize_G { get { return GetResourceString("InfoSize_G"); } }
		public static string GetInfoSize_G (CultureInfo culture) { return GetResourceString("InfoSize_G", culture); }

		public static string InfoSize_iB { get { return GetResourceString("InfoSize_iB"); } }
		public static string GetInfoSize_iB (CultureInfo culture) { return GetResourceString("InfoSize_iB", culture); }

		public static string InfoSize_K { get { return GetResourceString("InfoSize_K"); } }
		public static string GetInfoSize_K (CultureInfo culture) { return GetResourceString("InfoSize_K", culture); }

		public static string InfoSize_M { get { return GetResourceString("InfoSize_M"); } }
		public static string GetInfoSize_M (CultureInfo culture) { return GetResourceString("InfoSize_M", culture); }

		public static string InfoSize_P { get { return GetResourceString("InfoSize_P"); } }
		public static string GetInfoSize_P (CultureInfo culture) { return GetResourceString("InfoSize_P", culture); }

		public static string InfoSize_T { get { return GetResourceString("InfoSize_T"); } }
		public static string GetInfoSize_T (CultureInfo culture) { return GetResourceString("InfoSize_T", culture); }

		public static string ReattachDebugger_Message { get { return GetResourceString("ReattachDebugger_Message"); } }
		public static string GetReattachDebugger_Message (CultureInfo culture) { return GetResourceString("ReattachDebugger_Message", culture); }

		public static class Names
		{
			public const string InfoSize_B = "InfoSize_B";
			public const string InfoSize_E = "InfoSize_E";
			public const string InfoSize_G = "InfoSize_G";
			public const string InfoSize_iB = "InfoSize_iB";
			public const string InfoSize_K = "InfoSize_K";
			public const string InfoSize_M = "InfoSize_M";
			public const string InfoSize_P = "InfoSize_P";
			public const string InfoSize_T = "InfoSize_T";
			public const string ReattachDebugger_Message = "ReattachDebugger_Message";
		}
	}
}
